<?php /* Smarty version Smarty-3.0.9, created on 2013-05-20 16:27:18
         compiled from "D:/wamp/www/glight/templates\registro_historias.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2204519a4ee6df87d2-21688143%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b40d3fb14b6ae4fd3c82296577256c034c94708e' => 
    array (
      0 => 'D:/wamp/www/glight/templates\\registro_historias.tpl',
      1 => 1369067235,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2204519a4ee6df87d2-21688143',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form  method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
c_registro_historias.php?option=add">
<legend>Agregar Finca</legend>
<fieldset>
<table id="drag" cellspacing="2">
    <tr><td>ID: <input type="number" required name="id" autocomplete="off" /></td></tr>

<tr><td>Fecha Creacion: <input type="text" required name="fecha_creacion" placeholder="YYYY/mm/dd" value="" /></td>
<td>Detalle: <input type="text" required name="detalle"  value="" />
<td>Tipo Enfermedad: <input type="text" required name="tipo_enfermedad"  value="" />

<tr><td>Paciente: <select required name="paciente">
      <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('paciente')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
          <option <?php if (isset($_smarty_tpl->getVariable('object',null,true,false)->value->paciente)){?>selected<?php }?> title="<?php echo $_smarty_tpl->getVariable('paciente')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
" value="<?php echo $_smarty_tpl->getVariable('paciente')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
}"><?php echo $_smarty_tpl->getVariable('paciente')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option> 
      <?php endfor; endif; ?>
              </select>
    </td></tr>    
    
<tr><td><input  type="submit" value="Agregar"></td></tr>
</table>
</fieldset>
</form>